Optimal. Leaf size=199 \[ \frac {(4 A+3 C) x \sqrt {\cos (c+d x)}}{8 b^2 \sqrt {b \cos (c+d x)}}+\frac {B \sqrt {\cos (c+d x)} \sin (c+d x)}{b^2 d \sqrt {b \cos (c+d x)}}+\frac {(4 A+3 C) \cos ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{8 b^2 d \sqrt {b \cos (c+d x)}}+\frac {C \cos ^{\frac {7}{2}}(c+d x) \sin (c+d x)}{4 b^2 d \sqrt {b \cos (c+d x)}}-\frac {B \sqrt {\cos (c+d x)} \sin ^3(c+d x)}{3 b^2 d \sqrt {b \cos (c+d x)}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.08, antiderivative size = 199, normalized size of antiderivative = 1.00, number of steps
used = 7, number of rules used = 6, integrand size = 43, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.140, Rules used = {17, 3102, 2827,
2715, 8, 2713} \begin {gather*} \frac {x (4 A+3 C) \sqrt {\cos (c+d x)}}{8 b^2 \sqrt {b \cos (c+d x)}}+\frac {(4 A+3 C) \sin (c+d x) \cos ^{\frac {3}{2}}(c+d x)}{8 b^2 d \sqrt {b \cos (c+d x)}}-\frac {B \sin ^3(c+d x) \sqrt {\cos (c+d x)}}{3 b^2 d \sqrt {b \cos (c+d x)}}+\frac {B \sin (c+d x) \sqrt {\cos (c+d x)}}{b^2 d \sqrt {b \cos (c+d x)}}+\frac {C \sin (c+d x) \cos ^{\frac {7}{2}}(c+d x)}{4 b^2 d \sqrt {b \cos (c+d x)}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 8
Rule 17
Rule 2713
Rule 2715
Rule 2827
Rule 3102
Rubi steps
\begin {align*} \int \frac {\cos ^{\frac {9}{2}}(c+d x) \left (A+B \cos (c+d x)+C \cos ^2(c+d x)\right )}{(b \cos (c+d x))^{5/2}} \, dx &=\frac {\sqrt {\cos (c+d x)} \int \cos ^2(c+d x) \left (A+B \cos (c+d x)+C \cos ^2(c+d x)\right ) \, dx}{b^2 \sqrt {b \cos (c+d x)}}\\ &=\frac {C \cos ^{\frac {7}{2}}(c+d x) \sin (c+d x)}{4 b^2 d \sqrt {b \cos (c+d x)}}+\frac {\sqrt {\cos (c+d x)} \int \cos ^2(c+d x) (4 A+3 C+4 B \cos (c+d x)) \, dx}{4 b^2 \sqrt {b \cos (c+d x)}}\\ &=\frac {C \cos ^{\frac {7}{2}}(c+d x) \sin (c+d x)}{4 b^2 d \sqrt {b \cos (c+d x)}}+\frac {\left (B \sqrt {\cos (c+d x)}\right ) \int \cos ^3(c+d x) \, dx}{b^2 \sqrt {b \cos (c+d x)}}+\frac {\left ((4 A+3 C) \sqrt {\cos (c+d x)}\right ) \int \cos ^2(c+d x) \, dx}{4 b^2 \sqrt {b \cos (c+d x)}}\\ &=\frac {(4 A+3 C) \cos ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{8 b^2 d \sqrt {b \cos (c+d x)}}+\frac {C \cos ^{\frac {7}{2}}(c+d x) \sin (c+d x)}{4 b^2 d \sqrt {b \cos (c+d x)}}+\frac {\left ((4 A+3 C) \sqrt {\cos (c+d x)}\right ) \int 1 \, dx}{8 b^2 \sqrt {b \cos (c+d x)}}-\frac {\left (B \sqrt {\cos (c+d x)}\right ) \text {Subst}\left (\int \left (1-x^2\right ) \, dx,x,-\sin (c+d x)\right )}{b^2 d \sqrt {b \cos (c+d x)}}\\ &=\frac {(4 A+3 C) x \sqrt {\cos (c+d x)}}{8 b^2 \sqrt {b \cos (c+d x)}}+\frac {B \sqrt {\cos (c+d x)} \sin (c+d x)}{b^2 d \sqrt {b \cos (c+d x)}}+\frac {(4 A+3 C) \cos ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{8 b^2 d \sqrt {b \cos (c+d x)}}+\frac {C \cos ^{\frac {7}{2}}(c+d x) \sin (c+d x)}{4 b^2 d \sqrt {b \cos (c+d x)}}-\frac {B \sqrt {\cos (c+d x)} \sin ^3(c+d x)}{3 b^2 d \sqrt {b \cos (c+d x)}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.18, size = 95, normalized size = 0.48 \begin {gather*} \frac {\sqrt {\cos (c+d x)} (48 A c+36 c C+48 A d x+36 C d x+72 B \sin (c+d x)+24 (A+C) \sin (2 (c+d x))+8 B \sin (3 (c+d x))+3 C \sin (4 (c+d x)))}{96 b^2 d \sqrt {b \cos (c+d x)}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.33, size = 114, normalized size = 0.57
method | result | size |
default | \(\frac {\left (\cos ^{\frac {5}{2}}\left (d x +c \right )\right ) \left (6 C \left (\cos ^{3}\left (d x +c \right )\right ) \sin \left (d x +c \right )+8 B \left (\cos ^{2}\left (d x +c \right )\right ) \sin \left (d x +c \right )+12 A \sin \left (d x +c \right ) \cos \left (d x +c \right )+9 C \cos \left (d x +c \right ) \sin \left (d x +c \right )+12 A \left (d x +c \right )+16 B \sin \left (d x +c \right )+9 C \left (d x +c \right )\right )}{24 d \left (b \cos \left (d x +c \right )\right )^{\frac {5}{2}}}\) | \(114\) |
risch | \(\frac {\left (\sqrt {\cos }\left (d x +c \right )\right ) \left (8 A +6 C \right ) x}{16 b^{2} \sqrt {b \cos \left (d x +c \right )}}+\frac {3 B \sin \left (d x +c \right ) \left (\sqrt {\cos }\left (d x +c \right )\right )}{4 b^{2} d \sqrt {b \cos \left (d x +c \right )}}+\frac {\left (\sqrt {\cos }\left (d x +c \right )\right ) C \sin \left (4 d x +4 c \right )}{32 b^{2} \sqrt {b \cos \left (d x +c \right )}\, d}+\frac {\left (\sqrt {\cos }\left (d x +c \right )\right ) B \sin \left (3 d x +3 c \right )}{12 b^{2} \sqrt {b \cos \left (d x +c \right )}\, d}+\frac {\left (\sqrt {\cos }\left (d x +c \right )\right ) \left (A +C \right ) \sin \left (2 d x +2 c \right )}{4 b^{2} \sqrt {b \cos \left (d x +c \right )}\, d}\) | \(176\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.71, size = 116, normalized size = 0.58 \begin {gather*} \frac {\frac {24 \, {\left (2 \, d x + 2 \, c + \sin \left (2 \, d x + 2 \, c\right )\right )} A}{b^{\frac {5}{2}}} + \frac {3 \, {\left (12 \, d x + 12 \, c + \sin \left (4 \, d x + 4 \, c\right ) + 8 \, \sin \left (\frac {1}{2} \, \arctan \left (\sin \left (4 \, d x + 4 \, c\right ), \cos \left (4 \, d x + 4 \, c\right )\right )\right )\right )} C}{b^{\frac {5}{2}}} + \frac {8 \, B {\left (\sin \left (3 \, d x + 3 \, c\right ) + 9 \, \sin \left (\frac {1}{3} \, \arctan \left (\sin \left (3 \, d x + 3 \, c\right ), \cos \left (3 \, d x + 3 \, c\right )\right )\right )\right )}}{b^{\frac {5}{2}}}}{96 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.43, size = 282, normalized size = 1.42 \begin {gather*} \left [-\frac {3 \, {\left (4 \, A + 3 \, C\right )} \sqrt {-b} \cos \left (d x + c\right ) \log \left (2 \, b \cos \left (d x + c\right )^{2} + 2 \, \sqrt {b \cos \left (d x + c\right )} \sqrt {-b} \sqrt {\cos \left (d x + c\right )} \sin \left (d x + c\right ) - b\right ) - 2 \, {\left (6 \, C \cos \left (d x + c\right )^{3} + 8 \, B \cos \left (d x + c\right )^{2} + 3 \, {\left (4 \, A + 3 \, C\right )} \cos \left (d x + c\right ) + 16 \, B\right )} \sqrt {b \cos \left (d x + c\right )} \sqrt {\cos \left (d x + c\right )} \sin \left (d x + c\right )}{48 \, b^{3} d \cos \left (d x + c\right )}, \frac {3 \, {\left (4 \, A + 3 \, C\right )} \sqrt {b} \arctan \left (\frac {\sqrt {b \cos \left (d x + c\right )} \sin \left (d x + c\right )}{\sqrt {b} \cos \left (d x + c\right )^{\frac {3}{2}}}\right ) \cos \left (d x + c\right ) + {\left (6 \, C \cos \left (d x + c\right )^{3} + 8 \, B \cos \left (d x + c\right )^{2} + 3 \, {\left (4 \, A + 3 \, C\right )} \cos \left (d x + c\right ) + 16 \, B\right )} \sqrt {b \cos \left (d x + c\right )} \sqrt {\cos \left (d x + c\right )} \sin \left (d x + c\right )}{24 \, b^{3} d \cos \left (d x + c\right )}\right ] \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 2.34, size = 140, normalized size = 0.70 \begin {gather*} \frac {\sqrt {\cos \left (c+d\,x\right )}\,\sqrt {b\,\cos \left (c+d\,x\right )}\,\left (24\,A\,\sin \left (c+d\,x\right )+24\,C\,\sin \left (c+d\,x\right )+24\,A\,\sin \left (3\,c+3\,d\,x\right )+80\,B\,\sin \left (2\,c+2\,d\,x\right )+8\,B\,\sin \left (4\,c+4\,d\,x\right )+27\,C\,\sin \left (3\,c+3\,d\,x\right )+3\,C\,\sin \left (5\,c+5\,d\,x\right )+96\,A\,d\,x\,\cos \left (c+d\,x\right )+72\,C\,d\,x\,\cos \left (c+d\,x\right )\right )}{96\,b^3\,d\,\left (\cos \left (2\,c+2\,d\,x\right )+1\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________